<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta charset="utf-8">
	<title>添加操作员 - ${siteName}</title>
	<meta name="description" content="">
	<meta name="author" content="xuzewei">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
	<link rel="stylesheet" type="text/css" href="../css/cloud-admin.css" >
	<link href="../font-awesome/css/font-awesome.min.css" rel="stylesheet">
	<!-- DATE RANGE PICKER -->
	<link rel="stylesheet" type="text/css" href="../js/bootstrap-daterangepicker/daterangepicker-bs3.css" />
	<!-- UNIFORM -->
	<link rel="stylesheet" type="text/css" href="../js/uniform/css/uniform.default.min.css" />
	<!-- ANIMATE -->
	<link rel="stylesheet" type="text/css" href="../css/animatecss/animate.min.css" />
	<!-- HUBSPOT MESSENGER -->
	<link rel="stylesheet" type="text/css" href="../js/hubspot-messenger/css/messenger.min.css" />
	<link rel="stylesheet" type="text/css" href="../js/hubspot-messenger/css/messenger-theme-flat.min.css" />
	<!-- STYLESHEETS --><!--[if lt IE 9]><script src="../js/flot/excanvas.min.js"></script><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><script src="http://css3-mediaqueries-js.googlecode.com/svn/trunk/css3-mediaqueries.js"></script><![endif]-->
	<link rel="stylesheet" type="text/css" href="css/cloud-admin-frontend.css" >
	<link href="font-awesome/css/font-awesome.min.css" rel="stylesheet">
	<!-- ANIMATE -->
    <link href="css/amimatecss/animate.min.css" rel="stylesheet">
	<!-- COLORBOX -->
	<link rel="stylesheet" type="text/css" href="js/colorbox/colorbox.min.css" />
	<!-- CAROUSEL -->
    <link href="css/carousel.css" rel="stylesheet">
	<!-- FONTS -->
	<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600' rel='stylesheet' type='text/css'>
</head>
<body id="app" ng-app="app" ng-controller="ctrl">
	<!-- CONTACT-US -->
		<section id="header" data-type="background" data-speed="10" class="pages text-center">	
		<!-- <section id="parallax-3" data-type="background" data-speed="10" class="pages text-center"> -->
			<div class="parallax-overlay">
				<section id="contact">
					<section class="container">
						<div class="divide40"></div>
					<div class="row">
							<div class="col-md-12">
									<h2 class="text-center">
									</h2>
							</div>
							<div class="col-md-12">
									<h2 class="text-center">
									</h2>
							</div>
							<div class="col-md-12">
									<h2 class="text-center">
									</h2>
							</div>
							<div class="col-md-12">
									<h2 class="text-center">
									</h2>
							</div>
							<div class="col-md-12">
									<h2 class="text-center">
									</h2>
							</div>
							<div class="col-md-12">
									<h2 class="text-center">
									</h2>
							</div>
							<div class="col-md-12">
									<h2 class="text-center">
									</h2>
							</div>
							<div class="col-md-12">
									<h2 class="text-center">
									</h2>
							</div>			
							<div class="col-md-12">
									<h2 class="text-center">
									<span class="bigintro-light">创世注册</span>
									</h2>
							</div>
						</div>
						<div class="divide20"></div>
						<form role="form">
						<div class="row">
							<div class="col-md-6 col-md-offset-3 form-input">
								<input id="company" type="text" placeholder="账号" value="" name="account" ng-model="account"/>
							</div>
							<div class="col-md-6 col-md-offset-3 form-input">
								<input id="company" type="text" placeholder="密码" value="" name="password" ng-model="password"/>
							</div>
							<div class="col-md-6 col-md-offset-3 form-input">
								<input id="company" type="text" placeholder="验证码" value="" name="company" />
							</div>
							<div class="col-md-6 col-md-offset-3 form-input">
								<input id="company" type="text" placeholder="邮箱" value="" name="company" />
							</div>
							<div class="col-md-6 col-md-offset-3 form-submit">
								<button id="submit" class="btn btn-warning btn-lg" type="submit" ng-click="submit()">注册</button>
							</div>
						</div>
						</form>
						<div class="divide60"></div>
					</section>
				</section>
	<!--/PAGE -->
	
	<!-- JAVASCRIPTS -->
	<!-- Placed at the end of the document so the pages load faster -->
	<!-- JQUERY -->
	<script src="../js/jquery/jquery-2.0.3.min.js"></script>
	<!-- JQUERY UI-->
	<script src="../js/jquery-ui-1.10.3.custom/js/jquery-ui-1.10.3.custom.min.js"></script>
	<!-- BOOTSTRAP -->
	<script src="../bootstrap-dist/js/bootstrap.min.js"></script>
	<!-- DATE RANGE PICKER -->
	<script src="../js/bootstrap-daterangepicker/moment.min.js"></script>
	<script src="../js/bootstrap-daterangepicker/daterangepicker.min.js"></script>
	<!-- SLIMSCROLL -->
	<script type="text/javascript" src="../js/jQuery-slimScroll-1.3.0/jquery.slimscroll.min.js"></script>
	<script type="text/javascript" src="../js/jQuery-slimScroll-1.3.0/slimScrollHorizontal.min.js"></script>
	<!-- BLOCK UI -->
	<script type="text/javascript" src="../js/jQuery-BlockUI/jquery.blockUI.min.js"></script>
	<!-- JQGRID -->
	<script type="text/javascript" src="../js/jqgrid/js/grid.locale-en.min.js"></script>
	<script type="text/javascript" src="../js/jqgrid/js/jquery.jqGrid.min.js"></script>
	<!-- COOKIE -->
	<script type="text/javascript" src="../js/jQuery-Cookie/jquery.cookie.min.js"></script>
	<!-- HUBSPOT MESSENGER -->
	<script type="text/javascript" src="../js/hubspot-messenger/js/messenger.min.js"></script>
	<script type="text/javascript" src="../js/hubspot-messenger/js/messenger-theme-flat.js"></script>
	<script type="text/javascript" src="../js/hubspot-messenger/js/messenger-theme-future.js"></script>
	<script src="../js/script.js"></script>
	<!-- ANGULAR-LIBRARY -->
	<script src="../angular-1.5.0-rc.2/angular.js"></script>
	<!-- CUSTOM SCRIPT -->
	<script src="../include/common.js"></script>
	<script>
	var app = angular.module("app", []);
	app.controller('ctrl', function($scope, $http, $httpParamSerializer, $injector, $window) {
		
		$scope.submit = function() {
			var param = {
				"account": $scope.account,
				"password": $scope.password,
			};
			jQuery.post("../api/userAction/add", param, function(data) {
				isErr(data) ? showErrMsg(data) : showMsg('用户注册成功！');
				$window.location.href = "../user_perfect.jsp";
			});
		}
		
		$scope.logout = function() {
			logout($window);
		};
	});
	</script>
	<script>
	jQuery(document).ready(function() {
		App.init();
		jQuery('#nav_admin_user').click();
	});
	</script>
	<!-- /JAVASCRIPTS -->
</body>
</html>